package com.lagou.config;

/**
 * @ClassName: SentinelHandlersClass
 * @Description:
 * @Author: qjc
 * @Date: 2021/10/23 21:55
 */

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class SentinelHandlersClass {
    // 整体要求和当时Hystrix⼀样，这⾥还需要在形参最后添加BlockException参数，⽤于接收异常

    // 注意：⽅法是静态的
    public static String handleException() {
        return "-100";
    }

    public static String handleError() {
        return "-500";
    }
}
